﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>添加用户</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jspublic.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.js" type="text/javascript"></script>
<script src="js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="style/right.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

	$(function(){
		
		if (window.frameElement == null) self.location = '/manage';
		
	});
	
	function check_form(){
	  if(!document.getElementById("u_email").value==""){
		if(!document.getElementById("u_email").value.match(/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/)){
			alert("电子邮件格式不正确");
			return false;
		}
	  }
	  return true;
	}
	
</script>
</head>

<body>
<div class="zs_content">

	<div class="zs_quota">
		<h4>添加用户</h4>
	</div>
	
	<div class="zs_sys">
		<form action="admin_add.aspx?T=b_user" method="post" name="form1" id="form1" onsubmit="return check_form();">
		<ul>
			<li>
				<label>E-mail：</label>
				<div class="controls">
					<input type="text" name="u_email" type="text" maxlength="50" />
				</div>
			</li>
			<li>
				<label>电话：</label>
				<div class="controls">
					<input type="text" name="u_phone" type="text" maxlength="50" />
				</div>
			</li>
			<li>
				<label>昵称：</label>
				<div class="controls">
					<input type="text" name="u_nickName" type="text" maxlength="50" />
				</div>
			</li>
			<li>
				<label>头像：</label>
				<div class="controls">
					<img src="[c_defaultimg]" width="40" height="40" />
				</div>
			</li>
			<li>
				<label>密码：</label>
				<div class="controls">
					<input type="text" name="u_passWord" type="password" maxlength="50" />
				</div>
			</li>
			<li>
				<label>确认密码：</label>
				<div class="controls">
					<input type="text" name="repeatPassWord" type="password" maxlength="50" />
				</div>
			</li>
			<li class="act">
				<label></label>
				<div class="controls">
					<input type="submit" id="Submit" name="Submit" value="添加" class="btn btn-primary" />
                	<input type="button" id="back" name="back" value="返回" class="btn btn-primary" onclick="javascript:history.go(-1);" />
				</div>
			</li>
		</ul>
		</form>
	</div>
	
</div>
	
</body>
</html>